package com.school.lab.dao;

import java.util.List;

import com.school.lab.common.dao.GenericDao;
import com.school.lab.domain.User;


public interface UserDao extends GenericDao<User, Long> {

	public List<User> findByType(int start, int limit, int flag, String userType);

	public User getUser(String username, String password, String city,
			String flag);

	public List<User> findByType(int start, int limit, int flag,
			String userType, String city, int isTopAdmin);

	public List<User> findUser(int start, int limit, int flag, String roleName,
			String city, String realName);

	public User getUser(String username, String password);

	public User searchUser(String username, String realName);

	public User getByName(String username);

	public List<User> findUser(int start, int limit, int flag, String roleName,
			String city, String realName, String username, String grade);

}
